﻿// -----------------------------------------------------------------------
// <copyright file="WebApiConfig.cs" company="EPAM Systems">
////Copyright (c) EPAM Systems, 2012. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace MBOP.Website
{
	#region Usings

	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Web.Http;

	#endregion

	/// <summary>
	/// Config allows to include web application programming interface in the application
	/// </summary>
	public static class WebApiConfig
	{
		/// <summary>
		/// Registers web application programming interface configuration of the application.
		/// </summary>
		/// <param name="config">The configuration</param>
		public static void Register(HttpConfiguration config)
		{
			config.Routes.MapHttpRoute(
				name: "DefaultApi",
				routeTemplate: "api/{controller}/{id}",
				defaults: new { id = RouteParameter.Optional });
		}
	}
}
